package com.bf.electroplating.pojo.dto.problem;

import com.bf.electroplating.pojo.vo.attachment.AttachmentVo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "问题发现新增DTO")
public class ControlProblemFindingAddDTO {

    @Schema(description = "企业名称")
    @NotBlank(message = "企业名称不能为空")
    private String companyId;

    @Schema(description = "问题点位")
    @NotBlank(message = "问题点位不能为空")
    private String problemLocation;

    @Schema(description = "问题描述")
    @NotBlank(message = "问题描述不能为空")
    private String problemDescription;

    @Schema(description = "问题类型")
    @NotBlank(message = "问题类型不能为空")
    private String problemType;

    @Schema(description = "发现时间")
    @NotBlank(message = "发现时间不能为空")
    private String discoveryTime;

    @Schema(description = "计划完成时间")
    @NotBlank(message = "计划完成时间不能为空")
    private String planCompletionTime;

    @Schema(description = "问题照片")
    private List<AttachmentVo> photoList;

} 